package com.xj.common.bussiness.deviceState.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mars
 * @since 2017-08-24
 */
@TableName("tb_device_state")
public class TbDeviceState extends Model<TbDeviceState> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	private Integer id;
    /**
     * 设备mac
     */
	@TableField(value="device_mac")
	private String deviceMac;
    /**
     * 状态
     */
	private String state;
    /**
     * 陀螺仪-x
     */
	@TableField(value="gyro_x")
	private Double gyroX;
    /**
     * 陀螺仪-y
     */
	@TableField(value="gyro_y")
	private Double gyroY;
    /**
     * 陀螺仪-z
     */
	@TableField(value="gyro_z")
	private Double gyroZ;
	@TableField(value="create_time")
	private Date createTime=new Date();


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDeviceMac() {
		return deviceMac;
	}

	public void setDeviceMac(String deviceMac) {
		this.deviceMac = deviceMac;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Double getGyroX() {
		return gyroX;
	}

	public void setGyroX(Double gyroX) {
		this.gyroX = gyroX;
	}

	public Double getGyroY() {
		return gyroY;
	}

	public void setGyroY(Double gyroY) {
		this.gyroY = gyroY;
	}

	public Double getGyroZ() {
		return gyroZ;
	}

	public void setGyroZ(Double gyroZ) {
		this.gyroZ = gyroZ;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
